{"ast":null,"code":"import _slicedToArray from\"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";import React from'react';import\"./DropDownMenu.scss\";import{jsx as _jsx}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";var DropDownMenu=function DropDownMenu(_ref){var children=_ref.children;var _React$useState=React.useState(false),_React$useState2=_slicedToArray(_React$useState,2),show=_React$useState2[0],setShow=_React$useState2[1];return/*#__PURE__*/_jsxs(\"div\",{className:\"dropDownMenu\",children:[/*#__PURE__*/_jsx(\"button\",{onClick:function onClick(){return setShow(!show);},className:\"dropDownMenu__button\"}),show&&/*#__PURE__*/_jsx(\"div\",{className:\"dropDownMenu__children\",children:children})]});};export default DropDownMenu;","map":{"version":3,"names":["React","DropDownMenu","children","useState","show","setShow"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/src/components/DropDownMenu/index.tsx"],"sourcesContent":["import React from 'react';\nimport \"./DropDownMenu.scss\";\n\ntype Props = {\n    children: React.ReactNode;\n};\n\nconst DropDownMenu: React.FC<Props> = ({children}) => {\n    const [show, setShow] = React.useState<boolean>(false);\n\n    return (\n        <div className=\"dropDownMenu\">\n            <button onClick={() => setShow(!show)} className=\"dropDownMenu__button\" />\n            {show &&\n                <div className=\"dropDownMenu__children\">\n                    {children}\n                </div>\n            }\n        </div>\n    );\n}\n\nexport default DropDownMenu;\n"],"mappings":"8IAAA,MAAOA,MAAK,KAAM,OAAO,CACzB,MAAO,qBAAqB,CAAC,wFAM7B,GAAMC,aAA6B,CAAG,QAAhCA,aAA6B,MAAmB,IAAdC,SAAQ,MAARA,QAAQ,CAC5C,oBAAwBF,KAAK,CAACG,QAAQ,CAAU,KAAK,CAAC,oDAA/CC,IAAI,qBAAEC,OAAO,qBAEpB,mBACI,aAAK,SAAS,CAAC,cAAc,wBACzB,eAAQ,OAAO,CAAE,yBAAMA,QAAO,CAAC,CAACD,IAAI,CAAC,EAAC,CAAC,SAAS,CAAC,sBAAsB,EAAG,CACzEA,IAAI,eACD,YAAK,SAAS,CAAC,wBAAwB,UAClCF,QAAQ,EACP,GAER,CAEd,CAAC,CAED,cAAeD,aAAY"},"metadata":{},"sourceType":"module"}